package com.neusoft.dao;

import com.neusoft.model.Employee;

import java.sql.SQLException;

public interface EmployeeDao {
    /**
     * 添加员工信息
     * @param employee
     * @return
     */
    public boolean add(Employee employee) throws SQLException;

    /**
     * 根据id查询某个员工
     * @param id
     * @return
     */
    public Employee getQueryById(int id) throws SQLException;

    /**
     * 根据id删除某个员工
     * @param id
     * @return
     */
    public boolean deleteById(int id) throws SQLException;

    /**
     * 修改员工
     * @param employee
     * @return
     */
    public boolean update(Employee employee) throws SQLException;

}
